home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / Errors.a < prev    next >
Encoding:
Text File  |  1996-05-01  |  63.2 KB  |  1,299 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Errors.a
  3. ;
  4. ;    Contains:    OSErr codes.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  19. __ERRORS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.  
  25. paramErr                        EQU        -50                    ;error in user parameter list
  26. noHardwareErr                    EQU        -200                ;Sound Manager Error Returns
  27. notEnoughHardwareErr            EQU        -201                ;Sound Manager Error Returns
  28. userCanceledErr                    EQU        -128
  29. qErr                            EQU        -1                    ;queue element not found during deletion
  30. vTypErr                            EQU        -2                    ;invalid queue element
  31. corErr                            EQU        -3                    ;core routine number out of range
  32. unimpErr                        EQU        -4                    ;unimplemented core routine
  33. SlpTypeErr                        EQU        -5                    ;invalid queue element
  34. seNoDB                            EQU        -8                    ;no debugger installed to handle debugger command
  35. controlErr                        EQU        -17                    ;I/O System Errors
  36. statusErr                        EQU        -18                    ;I/O System Errors
  37. readErr                            EQU        -19                    ;I/O System Errors
  38. writErr                            EQU        -20                    ;I/O System Errors
  39. badUnitErr                        EQU        -21                    ;I/O System Errors
  40. unitEmptyErr                    EQU        -22                    ;I/O System Errors
  41. openErr                            EQU        -23                    ;I/O System Errors
  42. closErr                            EQU        -24                    ;I/O System Errors
  43. dRemovErr                        EQU        -25                    ;tried to remove an open driver
  44. dInstErr                        EQU        -26                    ;DrvrInstall couldn't find driver in resources
  45.  
  46. abortErr                        EQU        -27                    ;IO call aborted by KillIO
  47. iIOAbortErr                        EQU        -27                    ;IO abort error (Printing Manager)
  48. notOpenErr                        EQU        -28                    ;Couldn't rd/wr/ctl/sts cause driver not opened
  49. unitTblFullErr                    EQU        -29                    ;unit table has no more entries
  50. dceExtErr                        EQU        -30                    ;dce extension error
  51. slotNumErr                        EQU        -360                ;invalid slot # error
  52. gcrOnMFMErr                        EQU        -400                ;gcr format on high density media error
  53. dirFulErr                        EQU        -33                    ;Directory full
  54. dskFulErr                        EQU        -34                    ;disk full
  55. nsvErr                            EQU        -35                    ;no such volume
  56. ioErr                            EQU        -36                    ;I/O error (bummers)
  57. bdNamErr                        EQU        -37                    ;there may be no bad names in the final system!
  58. fnOpnErr                        EQU        -38                    ;File not open
  59. eofErr                            EQU        -39                    ;End of file
  60. posErr                            EQU        -40                    ;tried to position to before start of file (r/w)
  61. mFulErr                            EQU        -41                    ;memory full (open) or file won't fit (load)
  62. tmfoErr                            EQU        -42                    ;too many files open
  63. fnfErr                            EQU        -43                    ;File not found
  64. wPrErr                            EQU        -44                    ;diskette is write protected.
  65. fLckdErr                        EQU        -45                    ;file is locked
  66.  
  67. vLckdErr                        EQU        -46                    ;volume is locked
  68. fBsyErr                            EQU        -47                    ;File is busy (delete)
  69. dupFNErr                        EQU        -48                    ;duplicate filename (rename)
  70. opWrErr                            EQU        -49                    ;file already open with with write permission
  71. rfNumErr                        EQU        -51                    ;refnum error
  72. gfpErr                            EQU        -52                    ;get file position error
  73. volOffLinErr                    EQU        -53                    ;volume not on line error (was Ejected)
  74. permErr                            EQU        -54                    ;permissions error (on file open)
  75. volOnLinErr                        EQU        -55                    ;drive volume already on-line at MountVol
  76. nsDrvErr                        EQU        -56                    ;no such drive (tried to mount a bad drive num)
  77. noMacDskErr                        EQU        -57                    ;not a mac diskette (sig bytes are wrong)
  78. extFSErr                        EQU        -58                    ;volume in question belongs to an external fs
  79. fsRnErr                            EQU        -59                    ;file system internal error:during rename the old entry was deleted but could not be restored.
  80. badMDBErr                        EQU        -60                    ;bad master directory block
  81. wrPermErr                        EQU        -61                    ;write permissions error
  82. dirNFErr                        EQU        -120                ;Directory not found
  83. tmwdoErr                        EQU        -121                ;No free WDCB available
  84. badMovErr                        EQU        -122                ;Move into offspring error
  85. wrgVolTypErr                    EQU        -123                ;Wrong volume type error [operation not supported for MFS]
  86. volGoneErr                        EQU        -124                ;Server volume has been disconnected.
  87.  
  88. fidNotFound                        EQU        -1300                ;no file thread exists.
  89. fidExists                        EQU        -1301                ;file id already exists
  90. notAFileErr                        EQU        -1302                ;directory specified
  91. diffVolErr                        EQU        -1303                ;files on different volumes
  92. catChangedErr                    EQU        -1304                ;the catalog has been modified
  93. desktopDamagedErr                EQU        -1305                ;desktop database files are corrupted
  94. sameFileErr                        EQU        -1306                ;can't exchange a file with itself
  95. badFidErr                        EQU        -1307                ;file id is dangling or doesn't match with the file number
  96. notARemountErr                    EQU        -1308                ;when _Mount allows only remounts and doesn't get one
  97. fileBoundsErr                    EQU        -1309                ;file's EOF, offset, mark or size is too big
  98. fsDataTooBigErr                    EQU        -1310                ;file or volume is too big for system
  99. envNotPresent                    EQU        -5500                ;returned by glue.
  100. envBadVers                        EQU        -5501                ;Version non-positive
  101. envVersTooBig                    EQU        -5502                ;Version bigger than call can handle
  102. fontDecError                    EQU        -64                    ;error during font declaration
  103. fontNotDeclared                    EQU        -65                    ;font not declared
  104. fontSubErr                        EQU        -66                    ;font substitution occured
  105. fontNotOutlineErr                EQU        -32615                ;bitmap font passed to routine that does outlines only
  106. firstDskErr                        EQU        -84                    ;I/O System Errors
  107. lastDskErr                        EQU        -64                    ;I/O System Errors
  108. noDriveErr                        EQU        -64                    ;drive not installed
  109. offLinErr                        EQU        -65                    ;r/w requested for an off-line drive
  110. noNybErr                        EQU        -66                    ;couldn't find 5 nybbles in 200 tries
  111.  
  112. noAdrMkErr                        EQU        -67                    ;couldn't find valid addr mark
  113. dataVerErr                        EQU        -68                    ;read verify compare failed
  114. badCksmErr                        EQU        -69                    ;addr mark checksum didn't check
  115. badBtSlpErr                        EQU        -70                    ;bad addr mark bit slip nibbles
  116. noDtaMkErr                        EQU        -71                    ;couldn't find a data mark header
  117. badDCksum                        EQU        -72                    ;bad data mark checksum
  118. badDBtSlp                        EQU        -73                    ;bad data mark bit slip nibbles
  119. wrUnderrun                        EQU        -74                    ;write underrun occurred
  120. cantStepErr                        EQU        -75                    ;step handshake failed
  121. tk0BadErr                        EQU        -76                    ;track 0 detect doesn't change
  122. initIWMErr                        EQU        -77                    ;unable to initialize IWM
  123. twoSideErr                        EQU        -78                    ;tried to read 2nd side on a 1-sided drive
  124. spdAdjErr                        EQU        -79                    ;unable to correctly adjust disk speed
  125. seekErr                            EQU        -80                    ;track number wrong on address mark
  126. sectNFErr                        EQU        -81                    ;sector number never found on a track
  127. fmt1Err                            EQU        -82                    ;can't find sector 0 after track format
  128. fmt2Err                            EQU        -83                    ;can't get enough sync
  129. verErr                            EQU        -84                    ;track failed to verify
  130. clkRdErr                        EQU        -85                    ;unable to read same clock value twice
  131. clkWrErr                        EQU        -86                    ;time written did not verify
  132.  
  133. prWrErr                            EQU        -87                    ;parameter ram written didn't read-verify
  134. prInitErr                        EQU        -88                    ;InitUtil found the parameter ram uninitialized
  135. rcvrErr                            EQU        -89                    ;SCC receiver error (framing; parity; OR)
  136. breakRecd                        EQU        -90                    ;Break received (SCC)
  137.                                                             ;Power Manager Errors
  138. pmBusyErr                        EQU        -13000                ;Power Mgr never ready to start handshake
  139. pmReplyTOErr                    EQU        -13001                ;Timed out waiting for reply
  140. pmSendStartErr                    EQU        -13002                ;during send, pmgr did not start hs
  141. pmSendEndErr                    EQU        -13003                ;during send, pmgr did not finish hs
  142. pmRecvStartErr                    EQU        -13004                ;during receive, pmgr did not start hs
  143. pmRecvEndErr                    EQU        -13005                ;during receive, pmgr did not finish hs configured for this connection
  144.                                                             ; Printing Errors 
  145. iMemFullErr                        EQU        -108
  146. iIOAbort                        EQU        -27                    ;Scrap Manager errors
  147. noScrapErr                        EQU        -100                ;No scrap exists error
  148. noTypeErr                        EQU        -102                ;No object of that type in scrap
  149. memROZWarn                        EQU        -99                    ;soft error in ROZ
  150. memROZError                        EQU        -99                    ;hard error in ROZ
  151. memROZErr                        EQU        -99                    ;hard error in ROZ
  152. memFullErr                        EQU        -108                ;Not enough room in heap zone
  153. nilHandleErr                    EQU        -109                ;Master Pointer was NIL in HandleZone or other
  154. memWZErr                        EQU        -111                ;WhichZone failed (applied to free block)
  155. memPurErr                        EQU        -112                ;trying to purge a locked or non-purgeable block
  156. memAdrErr                        EQU        -110                ;address was odd; or out of range
  157.  
  158. memAZErr                        EQU        -113                ;Address in zone check failed
  159. memPCErr                        EQU        -114                ;Pointer Check failed
  160. memBCErr                        EQU        -115                ;Block Check failed
  161. memSCErr                        EQU        -116                ;Size Check failed
  162. memLockedErr                    EQU        -117                ;trying to move a locked block (MoveHHi)
  163. resourceInMemory                EQU        -188                ;Resource already in memory
  164. writingPastEnd                    EQU        -189                ;Writing past end of file
  165. inputOutOfBounds                EQU        -190                ;Offset of Count out of bounds
  166. resNotFound                        EQU        -192                ;Resource not found
  167. resFNotFound                    EQU        -193                ;Resource file not found
  168. addResFailed                    EQU        -194                ;AddResource failed
  169. addRefFailed                    EQU        -195                ;AddReference failed
  170. rmvResFailed                    EQU        -196                ;RmveResource failed
  171. rmvRefFailed                    EQU        -197                ;RmveReference failed
  172. resAttrErr                        EQU        -198                ;attribute inconsistent with operation
  173. mapReadErr                        EQU        -199                ;map inconsistent with operation
  174. CantDecompress                    EQU        -186                ;resource bent ("the bends") - can't decompress a compressed resource
  175. badExtResource                    EQU        -185                ;extended resource has a bad format.
  176. evtNotEnb                        EQU        1                    ;event not enabled at PostEvent
  177. noMemForPictPlaybackErr            EQU        -145
  178. rgnOverflowErr                    EQU        -147
  179. rgnTooBigError                    EQU        -147
  180. pixMapTooDeepErr                EQU        -148
  181. insufficientStackErr            EQU        -149
  182. nsStackErr                        EQU        -149
  183. ;  OffScreen QuickDraw Errors 
  184.  
  185. cMatchErr                        EQU        -150                ;Color2Index failed to find an index
  186. cTempMemErr                        EQU        -151                ;failed to allocate memory for temporary structures
  187. cNoMemErr                        EQU        -152                ;failed to allocate memory for structure
  188. cRangeErr                        EQU        -153                ;range error on colorTable request
  189. cProtectErr                        EQU        -154                ;colorTable entry protection violation
  190. cDevErr                            EQU        -155                ;invalid type of graphics device
  191. cResErr                            EQU        -156                ;invalid resolution for MakeITable
  192. cDepthErr                        EQU        -157                ;invalid pixel depth 
  193. rgnTooBigErr                    EQU        -500
  194. updPixMemErr                    EQU        -125                ;insufficient memory to update a pixmap
  195. pictInfoVersionErr                EQU        -11000                ;wrong version of the PictInfo structure
  196. pictInfoIDErr                    EQU        -11001                ;the internal consistancy check for the PictInfoID is wrong
  197. pictInfoVerbErr                    EQU        -11002                ;the passed verb was invalid
  198. cantLoadPickMethodErr            EQU        -11003                ;unable to load the custom pick proc
  199. colorsRequestedErr                EQU        -11004                ;the number of colors requested was illegal
  200. pictureDataErr                    EQU        -11005                ;the picture data was invalid
  201.                                                             ;Sound Manager errors
  202. noHardware                        EQU        -200                ;obsolete spelling
  203. notEnoughHardware                EQU        -201                ;obsolete spelling
  204. queueFull                        EQU        -203                ;Sound Manager Error Returns
  205. resProblem                        EQU        -204                ;Sound Manager Error Returns
  206. badChannel                        EQU        -205                ;Sound Manager Error Returns
  207.  
  208. badFormat                        EQU        -206                ;Sound Manager Error Returns
  209. notEnoughBufferSpace            EQU        -207                ;could not allocate enough memory
  210. badFileFormat                    EQU        -208                ;was not type AIFF or was of bad format,corrupt
  211. channelBusy                        EQU        -209                ;the Channel is being used for a PFD already
  212. buffersTooSmall                    EQU        -210                ;can not operate in the memory allowed
  213. channelNotBusy                    EQU        -211
  214. noMoreRealTime                    EQU        -212                ;not enough CPU cycles left to add another task
  215. siNoSoundInHardware                EQU        -220                ;no Sound Input hardware
  216. siBadSoundInDevice                EQU        -221                ;invalid index passed to SoundInGetIndexedDevice
  217. siNoBufferSpecified                EQU        -222                ;returned by synchronous SPBRecord if nil buffer passed
  218. siInvalidCompression            EQU        -223                ;invalid compression type
  219. siHardDriveTooSlow                EQU        -224                ;hard drive too slow to record to disk
  220. siInvalidSampleRate                EQU        -225                ;invalid sample rate
  221. siInvalidSampleSize                EQU        -226                ;invalid sample size
  222. siDeviceBusyErr                    EQU        -227                ;input device already in use
  223. siBadDeviceName                    EQU        -228                ;input device could not be opened
  224. siBadRefNum                        EQU        -229                ;invalid input device reference number
  225. siInputDeviceErr                EQU        -230                ;input device hardware failure
  226. siUnknownInfoType                EQU        -231                ;invalid info type selector (returned by driver)
  227. siUnknownQuality                EQU        -232                ;invalid quality selector (returned by driver)
  228. ; Speech Manager errors
  229.  
  230. noSynthFound                    EQU        -240
  231. synthOpenFailed                    EQU        -241
  232. synthNotReady                    EQU        -242
  233. bufTooSmall                        EQU        -243
  234. voiceNotFound                    EQU        -244
  235. incompatibleVoice                EQU        -245
  236. badDictFormat                    EQU        -246
  237. badInputText                    EQU        -247
  238. ;  Midi Manager Errors: 
  239.  
  240. midiNoClientErr                    EQU        -250                ;no client with that ID found
  241. midiNoPortErr                    EQU        -251                ;no port with that ID found
  242. midiTooManyPortsErr                EQU        -252                ;too many ports already installed in the system
  243. midiTooManyConsErr                EQU        -253                ;too many connections made
  244. midiVConnectErr                    EQU        -254                ;pending virtual connection created
  245. midiVConnectMade                EQU        -255                ;pending virtual connection resolved
  246. midiVConnectRmvd                EQU        -256                ;pending virtual connection removed
  247. midiNoConErr                    EQU        -257                ;no connection exists between specified ports
  248. midiWriteErr                    EQU        -258                ;MIDIWritePacket couldn't write to all connected ports
  249. midiNameLenErr                    EQU        -259                ;name supplied is longer than 31 characters
  250. midiDupIDErr                    EQU        -260                ;duplicate client ID
  251. midiInvalidCmdErr                EQU        -261                ;command not supported for port type
  252. ; Notification Manager errors
  253.  
  254. nmTypErr                        EQU        -299                ;wrong queue type
  255. siInitSDTblErr                    EQU        1                    ;slot int dispatch table could not be initialized.
  256. siInitVBLQsErr                    EQU        2                    ;VBLqueues for all slots could not be initialized.
  257. siInitSPTblErr                    EQU        3                    ;slot priority table could not be initialized.
  258. sdmJTInitErr                    EQU        10                    ;SDM Jump Table could not be initialized.
  259. sdmInitErr                        EQU        11                    ;SDM could not be initialized.
  260. sdmSRTInitErr                    EQU        12                    ;Slot Resource Table could not be initialized.
  261. sdmPRAMInitErr                    EQU        13                    ;Slot PRAM could not be initialized.
  262. sdmPriInitErr                    EQU        14                    ;Cards could not be initialized.
  263. smSDMInitErr                    EQU        -290                ;Error; SDM could not be initialized.
  264. smSRTInitErr                    EQU        -291                ;Error; Slot Resource Table could not be initialized.
  265. smPRAMInitErr                    EQU        -292                ;Error; Slot Resource Table could not be initialized.
  266. smPriInitErr                    EQU        -293                ;Error; Cards could not be initialized.
  267. smEmptySlot                        EQU        -300                ;No card in slot
  268. smCRCFail                        EQU        -301                ;CRC check failed for declaration data
  269. smFormatErr                        EQU        -302                ;FHeader Format is not Apple's
  270. smRevisionErr                    EQU        -303                ;Wrong revison level
  271. smNoDir                            EQU        -304                ;Directory offset is Nil
  272. smDisabledSlot                    EQU        -305                ;This slot is disabled (-305 use to be smLWTstBad)
  273. smNosInfoArray                    EQU        -306                ;No sInfoArray. Memory Mgr error.
  274.  
  275.                                                             ;Dictionary Manager errors
  276. notBTree                        EQU        -410                ;The file is not a dictionary.
  277. btNoSpace                        EQU        -413                ;Can't allocate disk space.
  278. btDupRecErr                        EQU        -414                ;Record already exists.
  279. btRecNotFnd                        EQU        -415                ;Record cannot be found.
  280. btKeyLenErr                        EQU        -416                ;Maximum key length is too long or equal to zero.
  281. btKeyAttrErr                    EQU        -417                ;There is no such a key attribute.
  282. unknownInsertModeErr            EQU        -20000                ;There is no such an insert mode.
  283. recordDataTooBigErr                EQU        -20001                ;The record data is bigger than buffer size (1024 bytes).
  284. invalidIndexErr                    EQU        -20002                ;The recordIndex parameter is not valid.
  285.  
  286. smResrvErr                        EQU        -307                ;Fatal reserved error. Resreved field <> 0.
  287. smUnExBusErr                    EQU        -308                ;Unexpected BusError
  288. smBLFieldBad                    EQU        -309                ;ByteLanes field was bad.
  289. smFHBlockRdErr                    EQU        -310                ;Error occured during _sGetFHeader.
  290. smFHBlkDispErr                    EQU        -311                ;Error occured during _sDisposePtr (Dispose of FHeader block).
  291. smDisposePErr                    EQU        -312                ;_DisposePointer error
  292. smNoBoardSRsrc                    EQU        -313                ;No Board sResource.
  293. smGetPRErr                        EQU        -314                ;Error occured during _sGetPRAMRec (See SIMStatus).
  294. smNoBoardId                        EQU        -315                ;No Board Id.
  295. smInitStatVErr                    EQU        -316                ;The InitStatusV field was negative after primary or secondary init.
  296. smInitTblVErr                    EQU        -317                ;An error occured while trying to initialize the Slot Resource Table.
  297. smNoJmpTbl                        EQU        -318                ;SDM jump table could not be created.
  298. smReservedSlot                    EQU        -318                ;slot is reserved, VM should not use this address space.
  299. smBadBoardId                    EQU        -319                ;BoardId was wrong; re-init the PRAM record.
  300. smBusErrTO                        EQU        -320                ;BusError time out.
  301.                                                             ; These errors are logged in the  vendor status field of the sInfo record. 
  302. svTempDisable                    EQU        -32768                ;Temporarily disable card but run primary init.
  303. svDisabled                        EQU        -32640                ;Reserve range -32640 to -32768 for Apple temp disables.
  304. smBadRefId                        EQU        -330                ;Reference Id not found in List
  305. smBadsList                        EQU        -331                ;Bad sList: Id1 < Id2 < Id3 ...format is not followed.
  306. smReservedErr                    EQU        -332                ;Reserved field not zero
  307. smCodeRevErr                    EQU        -333                ;Code revision is wrong
  308.  
  309. smCPUErr                        EQU        -334                ;Code revision is wrong
  310. smsPointerNil                    EQU        -335                ;LPointer is nil From sOffsetData. If this error occurs; check sInfo rec for more information.
  311. smNilsBlockErr                    EQU        -336                ;Nil sBlock error (Dont allocate and try to use a nil sBlock)
  312. smSlotOOBErr                    EQU        -337                ;Slot out of bounds error
  313. smSelOOBErr                        EQU        -338                ;Selector out of bounds error
  314. smNewPErr                        EQU        -339                ;_NewPtr error
  315. smBlkMoveErr                    EQU        -340                ;_BlockMove error
  316. smCkStatusErr                    EQU        -341                ;Status of slot = fail.
  317. smGetDrvrNamErr                    EQU        -342                ;Error occured during _sGetDrvrName.
  318. smDisDrvrNamErr                    EQU        -343                ;Error occured during _sDisDrvrName.
  319. smNoMoresRsrcs                    EQU        -344                ;No more sResources
  320. smsGetDrvrErr                    EQU        -345                ;Error occurred during _sGetDriver.
  321. smBadsPtrErr                    EQU        -346                ;Bad pointer was passed to sCalcsPointer
  322. smByteLanesErr                    EQU        -347                ;NumByteLanes was determined to be zero.
  323. smOffsetErr                        EQU        -348                ;Offset was too big (temporary error
  324. smNoGoodOpens                    EQU        -349                ;No opens were successfull in the loop.
  325. smSRTOvrFlErr                    EQU        -350                ;SRT over flow.
  326. smRecNotFnd                        EQU        -351                ;Record not found in the SRT.
  327. editionMgrInitErr                EQU        -450                ;edition manager not inited by this app
  328. badSectionErr                    EQU        -451                ;not a valid SectionRecord
  329.  
  330. notRegisteredSectionErr            EQU        -452                ;not a registered SectionRecord
  331. badEditionFileErr                EQU        -453                ;edition file is corrupt
  332. badSubPartErr                    EQU        -454                ;can not use sub parts in this release
  333. multiplePublisherWrn            EQU        -460                ;A Publisher is already registered for that container
  334. containerNotFoundWrn            EQU        -461                ;could not find editionContainer at this time
  335. containerAlreadyOpenWrn            EQU        -462                ;container already opened by this section
  336. notThePublisherWrn                EQU        -463                ;not the first registered publisher for that container
  337. teScrapSizeErr                    EQU        -501                ;scrap item too big for text edit record
  338. hwParamErr                        EQU        -502                ;bad selector for _HWPriv
  339.                                                             ;Process Manager errors
  340. procNotFound                    EQU        -600                ;no eligible process with specified descriptor
  341. memFragErr                        EQU        -601                ;not enough room to launch app w/special requirements
  342. appModeErr                        EQU        -602                ;memory mode is 32-bit, but app not 32-bit clean
  343. protocolErr                        EQU        -603                ;app made module calls in improper order
  344. hardwareConfigErr                EQU        -604                ;hardware configuration not correct for call
  345. appMemFullErr                    EQU        -605                ;application SIZE not big enough for launch
  346. appIsDaemon                        EQU        -606                ;app is BG-only, and launch flags disallow this
  347. bufferIsSmall                    EQU        -607                ;error returns from Post and Accept 
  348. noOutstandingHLE                EQU        -608
  349. connectionInvalid                EQU        -609
  350. noUserInteractionAllowed        EQU        -610                ; no user interaction allowed 
  351. ;  Thread Manager Error Codes 
  352.  
  353. threadTooManyReqsErr            EQU        -617
  354. threadNotFoundErr                EQU        -618
  355. threadProtocolErr                EQU        -619
  356. ; MemoryDispatch errors
  357.  
  358. notEnoughMemoryErr                EQU        -620                ;insufficient physical memory
  359. notHeldErr                        EQU        -621                ;specified range of memory is not held
  360. cannotMakeContiguousErr            EQU        -622                ;cannot make specified range contiguous
  361. notLockedErr                    EQU        -623                ;specified range of memory is not locked
  362. interruptsMaskedErr                EQU        -624                ;don’t call with interrupts masked
  363. cannotDeferErr                    EQU        -625                ;unable to defer additional functions
  364. noMMUErr                        EQU        -626                ;no MMU present
  365.  
  366. ddpSktErr                        EQU        -91                    ;error in soket number
  367. ddpLenErr                        EQU        -92                    ;data length too big
  368. noBridgeErr                        EQU        -93                    ;no network bridge for non-local send
  369. lapProtErr                        EQU        -94                    ;error in attaching/detaching protocol
  370. excessCollsns                    EQU        -95                    ;excessive collisions on write
  371. portNotPwr                        EQU        -96                    ;serial port not currently powered
  372. portInUse                        EQU        -97                    ;driver Open error code (port is in use)
  373. portNotCf                        EQU        -98                    ;driver Open error code (parameter RAM not configured for this connection)
  374. ; Help Mgr error range: -850 to -874
  375.  
  376. hmHelpDisabled                    EQU        -850                ; Show Balloons mode was off, call to routine ignored 
  377. hmBalloonAborted                EQU        -853                ; Returned if mouse was moving or mouse wasn't in window port rect 
  378. hmSameAsLastBalloon                EQU        -854                ; Returned from HMShowMenuBalloon if menu & item is same as last time 
  379. hmHelpManagerNotInited            EQU        -855                ; Returned from HMGetHelpMenuHandle if help menu not setup 
  380. hmSkippedBalloon                EQU        -857                ; Returned from calls if helpmsg specified a skip balloon 
  381. hmWrongVersion                    EQU        -858                ; Returned if help mgr resource was the wrong version 
  382. hmUnknownHelpType                EQU        -859                ; Returned if help msg record contained a bad type 
  383. hmOperationUnsupported            EQU        -861                ; Returned from HMShowBalloon call if bad method passed to routine 
  384. hmNoBalloonUp                    EQU        -862                ; Returned from HMRemoveBalloon if no balloon was visible when call was made 
  385. hmCloseViewActive                EQU        -863                ; Returned from HMRemoveBalloon if CloseView was active 
  386.  
  387. nbpBuffOvr                        EQU        -1024                ;Buffer overflow in LookupName
  388. nbpNoConfirm                    EQU        -1025
  389. nbpConfDiff                        EQU        -1026                ;Name confirmed at different socket
  390. nbpDuplicate                    EQU        -1027                ;Duplicate name exists already
  391. nbpNotFound                        EQU        -1028                ;Name not found on remove
  392. nbpNISErr                        EQU        -1029                ;Error trying to open the NIS
  393. aspBadVersNum                    EQU        -1066                ;Server cannot support this ASP version
  394. aspBufTooSmall                    EQU        -1067                ;Buffer too small
  395. aspNoMoreSess                    EQU        -1068                ;No more sessions on server
  396. aspNoServers                    EQU        -1069                ;No servers at that address
  397. aspParamErr                        EQU        -1070                ;Parameter error
  398.  
  399. aspServerBusy                    EQU        -1071                ;Server cannot open another session
  400. aspSessClosed                    EQU        -1072                ;Session closed
  401. aspSizeErr                        EQU        -1073                ;Command block too big
  402. aspTooMany                        EQU        -1074                ;Too many clients (server error)
  403. aspNoAck                        EQU        -1075                ;No ack on attention request (server err)
  404. reqFailed                        EQU        -1096
  405. tooManyReqs                        EQU        -1097
  406. tooManySkts                        EQU        -1098
  407. badATPSkt                        EQU        -1099
  408. badBuffNum                        EQU        -1100
  409. noRelErr                        EQU        -1101
  410. cbNotFound                        EQU        -1102
  411. noSendResp                        EQU        -1103
  412. noDataArea                        EQU        -1104
  413. reqAborted                        EQU        -1105
  414. ;  ADSP Error Codes 
  415.  
  416.                                                             ; driver control ioResults 
  417. errRefNum                        EQU        -1280                ; bad connection refNum 
  418. errAborted                        EQU        -1279                ; control call was aborted 
  419. errState                        EQU        -1278                ; bad connection state for this operation 
  420. errOpening                        EQU        -1277                ; open connection request failed 
  421. errAttention                    EQU        -1276                ; attention message too long 
  422. errFwdReset                        EQU        -1275                ; read terminated by forward reset 
  423. errDSPQueueSize                    EQU        -1274                ; DSP Read/Write Queue Too small 
  424. errOpenDenied                    EQU        -1273                ; open connection request was denied 
  425. ; ***    OSL ERROR CODES            ***
  426.  
  427. errAEImpossibleRange            EQU        -1720                ; A range like 3rd to 2nd, or 1st to all. 
  428. errAEWrongNumberArgs            EQU        -1721                ; Logical op kAENOT used with other than 1 term 
  429. errAEAccessorNotFound            EQU        -1723                ; Accessor proc matching wantClass and containerType or wildcards not found 
  430. errAENoSuchLogical                EQU        -1725                ; Something other than AND, OR, or NOT 
  431. errAEBadTestKey                    EQU        -1726                ; Test is neither typeLogicalDescriptor nor typeCompDescriptor 
  432. errAENotAnObjSpec                EQU        -1727                ; Param to AEResolve not of type 'obj ' 
  433. errAENoSuchObject                EQU        -1728                ; e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error. 
  434. errAENegativeCount                EQU        -1729                ; CountProc returned negative value 
  435. errAEEmptyListContainer            EQU        -1730                ; Attempt to pass empty list as container to accessor 
  436. ;
  437. ;--------------------------------------------------------------
  438. ;        Apple event manager error messages
  439. ;--------------------------------------------------------------
  440. ;
  441.  
  442. errAECoercionFail                EQU        -1700                ; bad parameter data or unable to coerce the data supplied 
  443. errAEDescNotFound                EQU        -1701
  444. errAECorruptData                EQU        -1702
  445. errAEWrongDataType                EQU        -1703
  446. errAENotAEDesc                    EQU        -1704
  447. errAEBadListItem                EQU        -1705                ; the specified list item does not exist 
  448. errAENewerVersion                EQU        -1706                ; need newer version of the AppleEvent manager 
  449. errAENotAppleEvent                EQU        -1707                ; the event is not in AppleEvent format 
  450. errAEEventNotHandled            EQU        -1708                ; the AppleEvent was not handled by any handler 
  451. errAEReplyNotValid                EQU        -1709                ; AEResetTimer was passed an invalid reply parameter 
  452. errAEUnknownSendMode            EQU        -1710                ; mode wasn't NoReply, WaitReply, or QueueReply or Interaction level is unknown 
  453. errAEWaitCanceled                EQU        -1711                ; in AESend, the user cancelled out of wait loop for reply or receipt 
  454. errAETimeout                    EQU        -1712                ; the AppleEvent timed out 
  455. errAENoUserInteraction            EQU        -1713                ; no user interaction is allowed 
  456. errAENotASpecialFunction        EQU        -1714                ; there is no special function for/with this keyword 
  457. errAEParamMissed                EQU        -1715                ; a required parameter was not accessed 
  458. errAEUnknownAddressType            EQU        -1716                ; the target address type is not known 
  459. errAEHandlerNotFound            EQU        -1717                ; no handler in the dispatch tables fits the parameters to AEGetEventHandler or AEGetCoercionHandler 
  460. errAEReplyNotArrived            EQU        -1718                ; the contents of the reply you are accessing have not arrived yet 
  461. errAEIllegalIndex                EQU        -1719                ; index is out of range in a put operation 
  462. errAEUnknownObjectType            EQU        -1731                ; available only in version 1.0.1 or greater 
  463. errAERecordingIsAlreadyOn        EQU        -1732                ; available only in version 1.0.1 or greater 
  464. errAEReceiveTerminate            EQU        -1733                ; break out of all levels of AEReceive to the topmost (1.1 or greater) 
  465. errAEReceiveEscapeCurrent        EQU        -1734                ; break out of only lowest level of AEReceive (1.1 or greater) 
  466. errAEEventFiltered                EQU        -1735                ; event has been filtered, and should not be propogated (1.1 or greater) 
  467. errAEDuplicateHandler            EQU        -1736                ; attempt to install handler in table for identical class and id (1.1 or greater) 
  468. errAEStreamBadNesting            EQU        -1737                ; nesting violation while streaming 
  469. errAEStreamAlreadyConverted        EQU        -1738                ; attempt to convert a stream that has already been converted 
  470. errAEDescIsNull                    EQU        -1739                ; attempting to perform an invalid operation on a null descriptor 
  471. ;
  472. ;*************************************************************************
  473. ;    API Errors
  474. ;*************************************************************************
  475. ;
  476.  
  477. errOSASystemError                EQU        -1750
  478. errOSAInvalidID                    EQU        -1751
  479. errOSABadStorageType            EQU        -1752
  480. errOSAScriptError                EQU        -1753
  481. errOSABadSelector                EQU        -1754
  482. errOSASourceNotAvailable        EQU        -1756
  483. errOSANoSuchDialect                EQU        -1757
  484. errOSADataFormatObsolete        EQU        -1758
  485. errOSADataFormatTooNew            EQU        -1759
  486. errOSACorruptData                EQU        -1702
  487. errOSARecordingIsAlreadyOn        EQU        -1732
  488. errOSAComponentMismatch            EQU        -1761                ; Parameters are from 2 different components 
  489. errOSACantOpenComponent            EQU        -1762                ; Can't connect to scripting system with that ID 
  490. ; QuickTime errors
  491.  
  492. couldNotResolveDataRef            EQU        -2000
  493. badImageDescription                EQU        -2001
  494. badPublicMovieAtom                EQU        -2002
  495. cantFindHandler                    EQU        -2003
  496. cantOpenHandler                    EQU        -2004
  497. badComponentType                EQU        -2005
  498. noMediaHandler                    EQU        -2006
  499. noDataHandler                    EQU        -2007
  500. invalidMedia                    EQU        -2008
  501. invalidTrack                    EQU        -2009
  502. invalidMovie                    EQU        -2010
  503. invalidSampleTable                EQU        -2011
  504. invalidDataRef                    EQU        -2012
  505. invalidHandler                    EQU        -2013
  506. invalidDuration                    EQU        -2014
  507. invalidTime                        EQU        -2015
  508. cantPutPublicMovieAtom            EQU        -2016
  509. badEditList                        EQU        -2017
  510. mediaTypesDontMatch                EQU        -2018
  511. progressProcAborted                EQU        -2019
  512. movieToolboxUninitialized        EQU        -2020
  513. noRecordOfApp                    EQU        -2020                ; replica 
  514. wfFileNotFound                    EQU        -2021
  515. cantCreateSingleForkFile        EQU        -2022                ; happens when file already exists 
  516. invalidEditState                EQU        -2023
  517. nonMatchingEditState            EQU        -2024
  518. staleEditState                    EQU        -2025
  519. userDataItemNotFound            EQU        -2026
  520. maxSizeToGrowTooSmall            EQU        -2027
  521. badTrackIndex                    EQU        -2028
  522. trackIDNotFound                    EQU        -2029
  523. trackNotInMovie                    EQU        -2030
  524. timeNotInTrack                    EQU        -2031
  525. timeNotInMedia                    EQU        -2032
  526. badEditIndex                    EQU        -2033
  527. internalQuickTimeError            EQU        -2034
  528. cantEnableTrack                    EQU        -2035
  529. invalidRect                        EQU        -2036
  530. invalidSampleNum                EQU        -2037
  531. invalidChunkNum                    EQU        -2038
  532. invalidSampleDescIndex            EQU        -2039
  533. invalidChunkCache                EQU        -2040
  534. invalidSampleDescription        EQU        -2041
  535. dataNotOpenForRead                EQU        -2042
  536. dataNotOpenForWrite                EQU        -2043
  537. dataAlreadyOpenForWrite            EQU        -2044
  538. dataAlreadyClosed                EQU        -2045
  539. endOfDataReached                EQU        -2046
  540. dataNoDataRef                    EQU        -2047
  541. noMovieFound                    EQU        -2048
  542. invalidDataRefContainer            EQU        -2049
  543. badDataRefIndex                    EQU        -2050
  544. noDefaultDataRef                EQU        -2051
  545. couldNotUseAnExistingSample        EQU        -2052
  546. featureUnsupported                EQU        -2053
  547. noVideoTrackInMovieErr            EQU        -2054                ; QT for Windows error 
  548. noSoundTrackInMovieErr            EQU        -2055                ; QT for Windows error 
  549. soundSupportNotAvailableErr        EQU        -2056                ; QT for Windows error 
  550. unsupportedAuxiliaryImportData    EQU        -2057
  551. auxiliaryExportDataUnavailable    EQU        -2058
  552. samplesAlreadyInMediaErr        EQU        -2059
  553. movieTextNotFoundErr            EQU        -2062
  554. invalidSpriteWorldPropertyErr    EQU        -2064
  555. invalidSpritePropertyErr        EQU        -2065
  556. gWorldsNotSameDepthAndSizeErr    EQU        -2066
  557. invalidSpriteIndexErr            EQU        -2067
  558. invalidImageIndexErr            EQU        -2068
  559.  
  560. cannotFindAtomErr                EQU        -2101
  561. notLeafAtomErr                    EQU        -2102
  562. atomsNotOfSameTypeErr            EQU        -2103
  563. atomIndexInvalidErr                EQU        -2104
  564. duplicateAtomTypeAndIDErr        EQU        -2105
  565. invalidAtomErr                    EQU        -2106
  566. invalidAtomContainerErr            EQU        -2107
  567. invalidAtomTypeErr                EQU        -2108
  568.  
  569. digiUnimpErr                    EQU        -2201                ; feature unimplemented 
  570. qtParamErr                        EQU        -2202                ; bad input parameter (out of range, etc) 
  571. matrixErr                        EQU        -2203                ; bad matrix, digitizer did nothing 
  572. notExactMatrixErr                EQU        -2204                ; warning of bad matrix, digitizer did its best 
  573. noMoreKeyColorsErr                EQU        -2205                ; all key indexes in use 
  574. notExactSizeErr                    EQU        -2206                ; Can’t do exact size requested 
  575. badDepthErr                        EQU        -2207                ; Can’t digitize into this depth 
  576. noDMAErr                        EQU        -2208                ; Can’t do DMA digitizing (i.e. can't go to requested dest 
  577. badCallOrderErr                    EQU        -2209                ; Usually due to a status call being called prior to being setup first 
  578. ;  NameRegistry error codes 
  579.  
  580. nrLockedErr                        EQU        -2536
  581. nrNotEnoughMemoryErr            EQU        -2537
  582. nrInvalidNodeErr                EQU        -2538
  583. nrNotFoundErr                    EQU        -2539
  584. nrNotCreatedErr                    EQU        -2540
  585. nrNameErr                        EQU        -2541
  586. nrNotSlotDeviceErr                EQU        -2542
  587. nrDataTruncatedErr                EQU        -2543
  588. nrPowerErr                        EQU        -2544
  589. nrPowerSwitchAbortErr            EQU        -2545
  590. nrTypeMismatchErr                EQU        -2546
  591. nrNotModifiedErr                EQU        -2547
  592. nrOverrunErr                    EQU        -2548
  593. nrResultCodeBase                EQU        -2549
  594. nrPathNotFound                    EQU        -2550                ; a path component lookup failed 
  595. nrPathBufferTooSmall            EQU        -2551                ; buffer for path is too small 
  596. nrInvalidEntryIterationOp        EQU        -2552                ; invalid entry iteration operation 
  597. nrPropertyAlreadyExists            EQU        -2553                ; property already exists 
  598. nrIterationDone                    EQU        -2554                ; iteration operation is done 
  599. nrExitedIteratorScope            EQU        -2555                ; outer scope of iterator was exited 
  600. nrTransactionAborted            EQU        -2556                ; transaction was aborted 
  601. ;
  602. ;*************************************************************************
  603. ;    Script Error Codes
  604. ;*************************************************************************
  605. ;
  606. ;  Runtime errors: 
  607.  
  608. errASCantConsiderAndIgnore        EQU        -2720
  609. errASCantCompareMoreThan32k        EQU        -2721                ; Parser/Compiler errors: 
  610. errASTerminologyNestingTooDeep    EQU        -2760
  611. errASIllegalFormalParameter        EQU        -2761
  612. errASParameterNotForEvent        EQU        -2762
  613. errASNoResultReturned            EQU        -2763                ;     The range -2780 thru -2799 is reserved for dialect specific error codes. (Error codes from different dialects may overlap.) 
  614. errASInconsistentNames            EQU        -2780                ;     English errors: 
  615. ; Component Manager & component errors
  616.  
  617. invalidComponentID                EQU        -3000
  618. validInstancesExist                EQU        -3001
  619. componentNotCaptured            EQU        -3002
  620. componentDontRegister            EQU        -3003
  621. ;  Color Picker errors
  622.  
  623. firstPickerError                EQU        -4000
  624. invalidPickerType                EQU        -4000
  625. requiredFlagsDontMatch            EQU        -4001
  626. pickerResourceError                EQU        -4002
  627. cantLoadPicker                    EQU        -4003
  628. cantCreatePickerWindow            EQU        -4004
  629. cantLoadPackage                    EQU        -4005
  630. pickerCantLive                    EQU        -4006
  631. colorSyncNotInstalled            EQU        -4007
  632. badProfileError                    EQU        -4008
  633. noHelpForItem                    EQU        -4009
  634. ; Text Engines, TSystemTextEngines, HIEditText error coded
  635.  
  636. errUnknownAttributeTag            EQU        -5240
  637. errMarginWilllNotFit            EQU        -5241
  638. errNotInImagingMode                EQU        -5242
  639. errAlreadyInImagingMode            EQU        -5243
  640. errEngineNotFound                EQU        -5244
  641. errIteratorReachedEnd            EQU        -5245
  642. errInvalidRange                    EQU        -5246
  643. errOffsetNotOnElementBounday    EQU        -5247
  644. errNoHiliteText                    EQU        -5248
  645. errEmptyScrap                    EQU        -5249
  646. errReadOnlyText                    EQU        -5250
  647. errUnknownElement                EQU        -5251
  648. errNonContiuousAttribute        EQU        -5252
  649. errCannotUndo                    EQU        -5253
  650. ;  NumberFormatting error codes
  651.  
  652. numberFormattingNotANumberErr    EQU        -5200
  653. numberFormattingOverflowInDestinationErr EQU -5201
  654. numberFormattingBadNumberFormattingObjectErr EQU -5202
  655. numberFormattingSpuriousCharErr    EQU        -5203
  656. numberFormattingLiteralMissingErr EQU    -5204
  657. numberFormattingDelimiterMissingErr EQU    -5205
  658. numberFormattingEmptyFormatErr    EQU        -5206
  659. numberFormattingBadFormatErr    EQU        -5207
  660. numberFormattingBadOptionsErr    EQU        -5028
  661. numberFormattingBadTokenErr        EQU        -5209
  662. numberFormattingUnOrdredCurrencyRangeErr EQU -5210
  663. numberFormattingBadCurrencyPositionErr EQU -5211
  664. numberFortmattingNotADigitErr    EQU        -5212
  665. ;  TextParser error codes
  666.  
  667. textParserBadParamErr            EQU        -5220
  668. textParserObjectNotFoundErr        EQU        -5221
  669. textParserBadTokenValueErr        EQU        -5222
  670. textParserBadParserObjectErr    EQU        -5223
  671. textParserParamErr                EQU        -5224
  672. textParserNoMoreTextErr            EQU        -5225
  673. textParserBadTextLanguageErr    EQU        -5226
  674. textParserBadTextEncodingErr    EQU        -5227
  675. textParserNoSuchTokenFoundErr    EQU        -5228
  676. textParserNoMoreTokensErr        EQU        -5229
  677. ;  Collection Manager errors 
  678.  
  679. collectionItemLockedErr            EQU        -5750
  680. collectionItemNotFoundErr        EQU        -5751
  681. collectionIndexRangeErr            EQU        -5752
  682. collectionVersionErr            EQU        -5753
  683. ;  Unicode Converter Error Codes
  684.  
  685. unicodeChecksumErr                EQU        -8769
  686. unicodeNoTableErr                EQU        -8768
  687. unicodeVariantErr                EQU        -8767
  688. unicodeFallbacksErr                EQU        -8766
  689. unicodePartConvertErr            EQU        -8765
  690. unicodeBufErr                    EQU        -8764
  691. unicodeCharErr                    EQU        -8763
  692. unicodeElementErr                EQU        -8762
  693. unicodeNotFoundErr                EQU        -8761
  694. unicodeTableFormatErr            EQU        -8760
  695. unicodeDirectionErr                EQU        -8759
  696. unicodeContextualErr            EQU        -8758
  697. unicodeTextEncodingDataErr        EQU        -8757
  698.  
  699. codecErr                        EQU        -8960
  700. noCodecErr                        EQU        -8961
  701. codecUnimpErr                    EQU        -8962
  702. codecSizeErr                    EQU        -8963
  703. codecScreenBufErr                EQU        -8964
  704. codecImageBufErr                EQU        -8965
  705. codecSpoolErr                    EQU        -8966
  706. codecAbortErr                    EQU        -8967
  707. codecWouldOffscreenErr            EQU        -8968
  708. codecBadDataErr                    EQU        -8969
  709. codecDataVersErr                EQU        -8970
  710. codecExtensionNotFoundErr        EQU        -8971
  711. scTypeNotFoundErr                EQU        -8971
  712. codecConditionErr                EQU        -8972
  713. codecOpenErr                    EQU        -8973
  714. codecCantWhenErr                EQU        -8974
  715. codecCantQueueErr                EQU        -8975
  716. codecNothingToBlitErr            EQU        -8976
  717. noDeviceForChannel                EQU        -9400
  718. grabTimeComplete                EQU        -9401
  719. cantDoThatInCurrentMode            EQU        -9402
  720. notEnoughMemoryToGrab            EQU        -9403
  721. notEnoughDiskSpaceToGrab        EQU        -9404
  722. couldntGetRequiredComponent        EQU        -9405
  723. badSGChannel                    EQU        -9406
  724. seqGrabInfoNotAvailable            EQU        -9407
  725. deviceCantMeetRequest            EQU        -9408
  726. badControllerHeight                EQU        -9994
  727. editingNotAllowed                EQU        -9995
  728. controllerBoundsNotExact        EQU        -9996
  729. cannotSetWidthOfAttachedController EQU    -9997
  730. controllerHasFixedHeight        EQU        -9998
  731. cannotMoveAttachedController    EQU        -9999
  732. ;  AERegistry Errors 
  733.  
  734. errAEBadKeyForm                    EQU        -10002
  735. errAECantHandleClass            EQU        -10010
  736. errAECantSupplyType                EQU        -10009
  737. errAECantUndo                    EQU        -10015
  738. errAEEventFailed                EQU        -10000
  739. errAEIndexTooLarge                EQU        -10007
  740. errAEInTransaction                EQU        -10011
  741. errAELocalOnly                    EQU        -10016
  742. errAENoSuchTransaction            EQU        -10012
  743. errAENotAnElement                EQU        -10008
  744. errAENotASingleObject            EQU        -10014
  745. errAENotModifiable                EQU        -10003
  746. errAENoUserSelection            EQU        -10013
  747. errAEPrivilegeError                EQU        -10004
  748. errAEReadDenied                    EQU        -10005
  749. errAETypeError                    EQU        -10001
  750. errAEWriteDenied                EQU        -10006
  751. ;  TELErr 
  752.  
  753. telGenericError                    EQU        -1
  754. telNoErr                        EQU        0
  755. telNoTools                        EQU        8                    ; no telephone tools found in extension folder 
  756. telBadTermErr                    EQU        -10001                ; invalid TELHandle or handle not found
  757. telBadDNErr                        EQU        -10002                ; TELDNHandle not found or invalid 
  758. telBadCAErr                        EQU        -10003                ; TELCAHandle not found or invalid 
  759. telBadHandErr                    EQU        -10004                ; bad handle specified 
  760. telBadProcErr                    EQU        -10005                ; bad msgProc specified 
  761. telCAUnavail                    EQU        -10006                ; a CA is not available 
  762. telNoMemErr                        EQU        -10007                ; no memory to allocate handle 
  763. telNoOpenErr                    EQU        -10008                ; unable to open terminal 
  764. telBadHTypeErr                    EQU        -10010                ; bad hook type specified 
  765. telHTypeNotSupp                    EQU        -10011                ; hook type not supported by this tool 
  766. telBadLevelErr                    EQU        -10012                ; bad volume level setting 
  767. telBadVTypeErr                    EQU        -10013                ; bad volume type error 
  768. telVTypeNotSupp                    EQU        -10014                ; volume type not supported by this tool
  769. telBadAPattErr                    EQU        -10015                ; bad alerting pattern specified 
  770. telAPattNotSupp                    EQU        -10016                ; alerting pattern not supported by tool
  771. telBadIndex                        EQU        -10017                ; bad index specified 
  772. telIndexNotSupp                    EQU        -10018                ; index not supported by this tool 
  773. telBadStateErr                    EQU        -10019                ; bad device state specified 
  774. telStateNotSupp                    EQU        -10020                ; device state not supported by tool 
  775. telBadIntExt                    EQU        -10021                ; bad internal external error 
  776. telIntExtNotSupp                EQU        -10022                ; internal external type not supported by this tool 
  777. telBadDNDType                    EQU        -10023                ; bad DND type specified 
  778. telDNDTypeNotSupp                EQU        -10024                ; DND type is not supported by this tool 
  779. telFeatNotSub                    EQU        -10030                ; feature not subscribed 
  780. telFeatNotAvail                    EQU        -10031                ; feature subscribed but not available 
  781. telFeatActive                    EQU        -10032                ; feature already active 
  782. telFeatNotSupp                    EQU        -10033                ; feature program call not supported by this tool 
  783. telConfLimitErr                    EQU        -10040                ; limit specified is too high for this configuration 
  784. telConfNoLimit                    EQU        -10041                ; no limit was specified but required
  785. telConfErr                        EQU        -10042                ; conference was not prepared 
  786. telConfRej                        EQU        -10043                ; conference request was rejected 
  787. telTransferErr                    EQU        -10044                ; transfer not prepared 
  788. telTransferRej                    EQU        -10045                ; transfer request rejected 
  789. telCBErr                        EQU        -10046                ; call back feature not set previously 
  790. telConfLimitExceeded            EQU        -10047                ; attempt to exceed switch conference limits 
  791. telBadDNType                    EQU        -10050                ; DN type invalid 
  792. telBadPageID                    EQU        -10051                ; bad page ID specified
  793. telBadIntercomID                EQU        -10052                ; bad intercom ID specified 
  794. telBadFeatureID                    EQU        -10053                ; bad feature ID specified 
  795. telBadFwdType                    EQU        -10054                ; bad fwdType specified 
  796. telBadPickupGroupID                EQU        -10055                ; bad pickup group ID specified 
  797. telBadParkID                    EQU        -10056                ; bad park id specified 
  798. telBadSelect                    EQU        -10057                ; unable to select or deselect DN 
  799. telBadBearerType                EQU        -10058                ; bad bearerType specified 
  800. telBadRate                        EQU        -10059                ; bad rate specified 
  801. telDNTypeNotSupp                EQU        -10060                ; DN type not supported by tool 
  802. telFwdTypeNotSupp                EQU        -10061                ; forward type not supported by tool 
  803. telBadDisplayMode                EQU        -10062                ; bad display mode specified 
  804. telDisplayModeNotSupp            EQU        -10063                ; display mode not supported by tool 
  805. telNoCallbackRef                EQU        -10064                ; no call back reference was specified, but is required 
  806. telAlreadyOpen                    EQU        -10070                ; terminal already open 
  807. telStillNeeded                    EQU        -10071                ; terminal driver still needed by someone else 
  808. telTermNotOpen                    EQU        -10072                ; terminal not opened via TELOpenTerm 
  809. telCANotAcceptable                EQU        -10080                ; CA not "acceptable" 
  810. telCANotRejectable                EQU        -10081                ; CA not "rejectable" 
  811. telCANotDeflectable                EQU        -10082                ; CA not "deflectable" 
  812. telPBErr                        EQU        -10090                ; parameter block error, bad format 
  813. telBadFunction                    EQU        -10091                ; bad msgCode specified 
  814.                                                             ;    telNoTools            = -10101,           unable to find any telephone tools 
  815. telNoSuchTool                    EQU        -10102                ; unable to find tool with name specified 
  816. telUnknownErr                    EQU        -10103                ; unable to set config 
  817. telNoCommFolder                    EQU        -10106                ; Communications/Extensions ƒ not found 
  818. telInitFailed                    EQU        -10107                ; initialization failed 
  819. telBadCodeResource                EQU        -10108                ; code resource not found 
  820. telDeviceNotFound                EQU        -10109                ; device not found 
  821. telBadProcID                    EQU        -10110                ; invalid procID 
  822. telValidateFailed                EQU        -10111                ; telValidate failed 
  823. telAutoAnsNotOn                    EQU        -10112                ; autoAnswer in not turned on 
  824. telDetAlreadyOn                    EQU        -10113                ; detection is already turned on 
  825. telBadSWErr                        EQU        -10114                ; Software not installed properly 
  826. telBadSampleRate                EQU        -10115                ; incompatible sample rate 
  827. telNotEnoughdspBW                EQU        -10116                ; not enough real-time for allocation 
  828. ;  MP (multiprocessor API) error codes
  829.  
  830. kMPDeletedErr                    EQU        -29295
  831. kMPTimeoutErr                    EQU        -29296
  832. kMPTaskAbortedErr                EQU        -29297
  833. kMPInsufficientResourcesErr        EQU        -29298
  834. kMPInvalidIDErr                    EQU        -29299
  835. ;  StringCompare error codes (in TextUtils range)
  836.  
  837. kCollateAttributesNotFoundErr    EQU        -29500
  838. kCollateInvalidOptions            EQU        -29501
  839. kCollateMissingUnicodeTableErr    EQU        -29502
  840. kCollateUnicodeConvertFailedErr    EQU        -29503
  841. kCollatePatternNotFoundErr        EQU        -29504
  842. kCollateInvalidChar                EQU        -29505
  843. kCollateBufferTooSmall            EQU        -29506
  844. kCollateInvalidCollationRef        EQU        -29507
  845. ;  TextObjects error codes
  846.  
  847. textObjInvalidIndexErr            EQU        -29580
  848. textObjBufferTooSmallErr        EQU        -29581
  849. textObjObjectTooSmallErr        EQU        -29582
  850. textObjTextConversionFailedErr    EQU        -29583
  851. textObjMalformedObjectErr        EQU        -29584
  852. textObjAnnotationNotFoundErr    EQU        -29585
  853. textObjMoreAnnotationsErr        EQU        -29586
  854. textObjLanguageChangedErr        EQU        -29587
  855. textObjFontNotFoundErr            EQU        -29599
  856. ;  Locale Object Mgr errors
  857.  
  858. localeNotFoundErr                EQU        -30001
  859. localeObjectAttributeNotAvailErr EQU    -30002
  860. localeObjectNoNamesTableErr        EQU        -30005
  861. localeBadReferenceErr            EQU        -30006
  862. localeObjectNotFoundErr            EQU        -30007
  863. localeObjectInvalidReferenceErr    EQU        -30008
  864. localeObjectItemFoundIsLastErr    EQU        -30009
  865. localeObjectNameAttributeConflictErr EQU -30010
  866. localeObjectInvalidIteratorErr    EQU        -30020
  867. localeObjectNoNameErr            EQU        -30021
  868. localeObjectTagDataNotFoundErr    EQU        -30022
  869. localeObjectCannotDeleteSystemObjectErr EQU -30023
  870. localeCouldNotWriteLinkedObjectsErr EQU    -30024
  871. localeDuplicateErr                EQU        -30025
  872. localeObjectDefaultValueNotAvailableErr EQU -30026
  873. localeNoAssociatedDataTagsErr    EQU        -30027
  874.  
  875. badComponentInstance            EQU        $80008001
  876. badComponentSelector            EQU        $80008002
  877. ; Translation manager & Translation components
  878.  
  879. invalidTranslationPathErr        EQU        -3025                ;Source type to destination type not a valid path
  880. couldNotParseSourceFileErr        EQU        -3026                ;Source document does not contain source type
  881. noTranslationPathErr            EQU        -3030
  882. badTranslationSpecErr            EQU        -3031
  883. noPrefAppErr                    EQU        -3032
  884.  
  885. buf2SmallErr                    EQU        -3101
  886. noMPPErr                        EQU        -3102
  887. ckSumErr                        EQU        -3103
  888. extractErr                        EQU        -3104
  889. readQErr                        EQU        -3105
  890. atpLenErr                        EQU        -3106
  891. atpBadRsp                        EQU        -3107
  892. recNotFnd                        EQU        -3108
  893. sktClosedErr                    EQU        -3109
  894. afpAccessDenied                    EQU        -5000
  895. afpAuthContinue                    EQU        -5001
  896. afpBadUAM                        EQU        -5002
  897. afpBadVersNum                    EQU        -5003
  898. afpBitmapErr                    EQU        -5004
  899. afpCantMove                        EQU        -5005
  900. afpDenyConflict                    EQU        -5006
  901. afpDirNotEmpty                    EQU        -5007
  902. afpDiskFull                        EQU        -5008
  903. afpEofError                        EQU        -5009
  904. afpFileBusy                        EQU        -5010
  905. afpFlatVol                        EQU        -5011
  906. afpItemNotFound                    EQU        -5012
  907. afpLockErr                        EQU        -5013
  908. afpMiscErr                        EQU        -5014
  909. afpNoMoreLocks                    EQU        -5015
  910.  
  911. afpNoServer                        EQU        -5016
  912. afpObjectExists                    EQU        -5017
  913. afpObjectNotFound                EQU        -5018
  914. afpParmErr                        EQU        -5019
  915. afpRangeNotLocked                EQU        -5020
  916. afpRangeOverlap                    EQU        -5021
  917. afpSessClosed                    EQU        -5022
  918. afpUserNotAuth                    EQU        -5023
  919. afpCallNotSupported                EQU        -5024
  920. afpObjectTypeErr                EQU        -5025
  921. afpTooManyFilesOpen                EQU        -5026
  922. afpServerGoingDown                EQU        -5027
  923. afpCantRename                    EQU        -5028
  924. afpDirNotFound                    EQU        -5029
  925. afpIconTypeError                EQU        -5030
  926. afpVolLocked                    EQU        -5031                ;Volume is Read-Only
  927. afpObjectLocked                    EQU        -5032                ;Object is M/R/D/W inhibited
  928. afpContainsSharedErr            EQU        -5033                ;the folder being shared contains a shared folder
  929. afpIDNotFound                    EQU        -5034
  930. afpIDExists                        EQU        -5035
  931.  
  932. afpDiffVolErr                    EQU        -5036
  933. afpCatalogChanged                EQU        -5037
  934. afpSameObjectErr                EQU        -5038
  935. afpBadIDErr                        EQU        -5039
  936. afpPwdSameErr                    EQU        -5040                ;someone tried to change their password to the same password on a mantadory password change
  937. afpPwdTooShortErr                EQU        -5041                ;the password being set is too short: there is a minimum length that must be met or exceeded
  938. afpPwdExpiredErr                EQU        -5042                ;the password being used is too old: this requires the user to change the password before log-in can continue
  939. afpInsideSharedErr                EQU        -5043                ;the folder being shared is inside a shared folder OR the folder contains a shared folder and is being moved into a shared folder 
  940.                                                             ;  OR the folder contains a shared folder and is being moved into the descendent of a shared folder.
  941. afpInsideTrashErr                EQU        -5044                ;the folder being shared is inside the trash folder 
  942.                                                             ;  OR the shared folder is being moved into the trash folder OR the folder is being moved to the trash and it contains a shared folder 
  943. afpBadDirIDType                    EQU        -5060
  944. afpCantMountMoreSrvre            EQU        -5061
  945. afpAlreadyMounted                EQU        -5062
  946. afpSameNodeErr                    EQU        -5063                ;Display Manager error codes (-6220...-6269)
  947. kDMGenErr                        EQU        -6220                ;Unexpected Error
  948.                                                             ; Mirroring-Specific Errors 
  949. kDMMirroringOnAlready            EQU        -6221                ;Returned by all calls that need mirroring to be off to do their thing.
  950. kDMWrongNumberOfDisplays        EQU        -6222                ;Can only handle 2 displays for now.
  951. kDMMirroringBlocked                EQU        -6223                ;DMBlockMirroring() has been called.
  952. kDMCantBlock                    EQU        -6224                ;Mirroring is already on, can’t Block now (call DMUnMirror() first).
  953. kDMMirroringNotOn                EQU        -6225                ;Returned by all calls that need mirroring to be on to do their thing.
  954.                                                             ; Other Display Manager Errors 
  955. kSysSWTooOld                    EQU        -6226                ;Missing critical pieces of System Software.
  956. kDMSWNotInitializedErr            EQU        -6227                ;Required software not initialized (eg windowmanager or display mgr).
  957. kDMDriverNotDisplayMgrAwareErr    EQU        -6228                ;Video Driver does not support display manager.
  958. kDMDisplayNotFoundErr            EQU        -6229                ;Could not find item (will someday remove).
  959. kDMNotFoundErr                    EQU        -6229                ;Could not find item.
  960. kDMDisplayAlreadyInstalledErr    EQU        -6230                ;Attempt to add an already installed display.
  961. kDMMainDisplayCannotMoveErr        EQU        -6231                ;Trying to move main display (or a display mirrored to it) 
  962. kDMNoDeviceTableclothErr        EQU        -6231                ;obsolete
  963.                                                             ;Gestalt error codes
  964. gestaltUnknownErr                EQU        -5550                ;value returned if Gestalt doesn't know the answer
  965. gestaltUndefSelectorErr            EQU        -5551                ;undefined selector was passed to Gestalt
  966. gestaltDupSelectorErr            EQU        -5552                ;tried to add an entry that already existed
  967. gestaltLocationErr                EQU        -5553                ;gestalt function ptr wasn't in sysheap
  968.                                                             ;PPC errors
  969. notInitErr                        EQU        -900                ;PPCToolBox not initialized
  970. nameTypeErr                        EQU        -902                ;Invalid or inappropriate locationKindSelector in locationName
  971. noPortErr                        EQU        -903                ;Unable to open port or bad portRefNum
  972. noGlobalsErr                    EQU        -904                ;The system is hosed, better re-boot
  973. localOnlyErr                    EQU        -905                ;Network activity is currently disabled
  974. destPortErr                        EQU        -906                ;Port does not exist at destination
  975. sessTableErr                    EQU        -907                ;Out of session tables, try again later
  976. noSessionErr                    EQU        -908                ;Invalid session reference number
  977. badReqErr                        EQU        -909                ;bad parameter or invalid state for operation
  978. portNameExistsErr                EQU        -910                ;port is already open (perhaps in another app)
  979. noUserNameErr                    EQU        -911                ;user name unknown on destination machine
  980.  
  981. userRejectErr                    EQU        -912                ;Destination rejected the session request
  982. noMachineNameErr                EQU        -913                ;user hasn't named his Macintosh in the Network Setup Control Panel
  983. noToolboxNameErr                EQU        -914                ;A system resource is missing, not too likely
  984. noResponseErr                    EQU        -915                ;unable to contact destination
  985. portClosedErr                    EQU        -916                ;port was closed
  986. sessClosedErr                    EQU        -917                ;session was closed
  987. badPortNameErr                    EQU        -919                ;PPCPortRec malformed
  988. noDefaultUserErr                EQU        -922                ;user hasn't typed in owners name in Network Setup Control Pannel
  989. notLoggedInErr                    EQU        -923                ;The default userRefNum does not yet exist
  990. noUserRefErr                    EQU        -924                ;unable to create a new userRefNum
  991. networkErr                        EQU        -925                ;An error has occured in the network, not too likely
  992. noInformErr                        EQU        -926                ;PPCStart failed because destination did not have inform pending
  993. authFailErr                        EQU        -927                ;unable to authenticate user at destination
  994. noUserRecErr                    EQU        -928                ;Invalid user reference number
  995. badServiceMethodErr                EQU        -930                ;illegal service type, or not supported
  996. badLocNameErr                    EQU        -931                ;location name malformed
  997. guestNotAllowedErr                EQU        -932                ;destination port requires authentication
  998. noMaskFoundErr                    EQU        -1000                ;Icon Utilties Error
  999.  
  1000. dsBusError                        EQU        1                    ;bus error
  1001. dsAddressErr                    EQU        2                    ;address error
  1002. dsIllInstErr                    EQU        3                    ;illegal instruction error
  1003. dsZeroDivErr                    EQU        4                    ;zero divide error
  1004. dsChkErr                        EQU        5                    ;check trap error
  1005. dsOvflowErr                        EQU        6                    ;overflow trap error
  1006. dsPrivErr                        EQU        7                    ;privilege violation error
  1007. dsTraceErr                        EQU        8                    ;trace mode error
  1008. dsLineAErr                        EQU        9                    ;line 1010 trap error
  1009. dsLineFErr                        EQU        10                    ;line 1111 trap error
  1010. dsMiscErr                        EQU        11                    ;miscellaneous hardware exception error
  1011. dsCoreErr                        EQU        12                    ;unimplemented core routine error
  1012. dsIrqErr                        EQU        13                    ;uninstalled interrupt error
  1013. dsIOCoreErr                        EQU        14                    ;IO Core Error
  1014. dsLoadErr                        EQU        15                    ;Segment Loader Error
  1015. dsFPErr                            EQU        16                    ;Floating point error
  1016. dsNoPackErr                        EQU        17                    ;package 0 not present
  1017. dsNoPk1                            EQU        18                    ;package 1 not present
  1018. dsNoPk2                            EQU        19                    ;package 2 not present
  1019.  
  1020. dsNoPk3                            EQU        20                    ;package 3 not present
  1021. dsNoPk4                            EQU        21                    ;package 4 not present
  1022. dsNoPk5                            EQU        22                    ;package 5 not present
  1023. dsNoPk6                            EQU        23                    ;package 6 not present
  1024. dsNoPk7                            EQU        24                    ;package 7 not present
  1025. dsMemFullErr                    EQU        25                    ;out of memory!
  1026. dsBadLaunch                        EQU        26                    ;can't launch file
  1027. dsFSErr                            EQU        27                    ;file system map has been trashed
  1028. dsStknHeap                        EQU        28                    ;stack has moved into application heap
  1029. negZcbFreeErr                    EQU        33                    ;ZcbFree has gone negative
  1030. dsFinderErr                        EQU        41                    ;can't load the Finder error
  1031. dsBadSlotInt                    EQU        51                    ;unserviceable slot interrupt
  1032. dsBadSANEOpcode                    EQU        81                    ;bad opcode given to SANE Pack4
  1033. dsBadPatchHeader                EQU        83                    ;SetTrapAddress saw the “come-from” header
  1034. menuPrgErr                        EQU        84                    ;happens when a menu is purged
  1035. dsMBarNFnd                        EQU        85                    ;Menu Manager Errors
  1036. dsHMenuFindErr                    EQU        86                    ;Menu Manager Errors
  1037. dsWDEFNotFound                    EQU        87                    ;could not load WDEF
  1038. dsCDEFNotFound                    EQU        88                    ;could not load CDEF
  1039. dsMDEFNotFound                    EQU        89                    ;could not load MDEF
  1040.  
  1041. dsNoFPU                            EQU        90                    ;an FPU instruction was executed and the machine doesn’t have one
  1042. dsNoPatch                        EQU        98                    ;Can't patch for particular Model Mac
  1043. dsBadPatch                        EQU        99                    ;Can't load patch resource
  1044. dsParityErr                        EQU        101                    ;memory parity error
  1045. dsOldSystem                        EQU        102                    ;System is too old for this ROM
  1046. ds32BitMode                        EQU        103                    ;booting in 32-bit on a 24-bit sys
  1047. dsNeedToWriteBootBlocks            EQU        104                    ;need to write new boot blocks
  1048. dsNotEnoughRAMToBoot            EQU        105                    ;must have at least 1.5MB of RAM to boot 7.0
  1049. dsBufPtrTooLow                    EQU        106                    ;bufPtr moved too far during boot
  1050. dsReinsert                        EQU        30                    ;request user to reinsert off-line volume
  1051. shutDownAlert                    EQU        42                    ;handled like a shutdown error
  1052. dsShutDownOrRestart                EQU        20000                ;user choice between ShutDown and Restart
  1053. dsSwitchOffOrRestart            EQU        20001                ;user choice between switching off and Restart
  1054. dsForcedQuit                    EQU        20002                ;allow the user to ExitToShell, return if Cancel
  1055. dsRemoveDisk                    EQU        20003                ;request user to remove disk from manual eject drive
  1056. dsDirtyDisk                        EQU        20004                ;request user to return a manually-ejected dirty disk
  1057. dsShutDownOrResume                EQU        20109                ;allow user to return to Finder or ShutDown
  1058. dsSCSIWarn                        EQU        20010                ;Portable SCSI adapter warning.
  1059. ;
  1060. ;    System Errors that are used after MacsBug is loaded to put up dialogs since these should not 
  1061. ;    cause MacsBug to stop, they must be in the range (30, 42, 16384-32767) negative numbers add 
  1062. ;    to an existing dialog without putting up a whole new dialog 
  1063. ;
  1064.  
  1065. dsMacsBugInstalled                EQU        -10                    ;say “MacsBug Installed”
  1066. dsDisassemblerInstalled            EQU        -11                    ;say “Disassembler Installed”
  1067. dsExtensionsDisabled            EQU        -13                    ;say “Extensions Disabled”
  1068. dsGreeting                        EQU        40                    ;welcome to Macintosh greeting
  1069. dsSysErr                        EQU        32767                ;general system error
  1070.                                                             ;old names here for compatibility’s sake
  1071. WDEFNFnd                        EQU        87
  1072.  
  1073. CDEFNFnd                        EQU        88
  1074. dsNotThe1                        EQU        31                    ;not the disk I wanted
  1075. dsBadStartupDisk                EQU        42                    ;unable to mount boot volume (sad Mac only)
  1076. dsSystemFileErr                    EQU        43                    ;can’t find System file to open (sad Mac only)
  1077. dsHD20Installed                    EQU        -12                    ;say “HD20 Startup”
  1078. mBarNFnd                        EQU        -126                ;system error code for MBDF not found
  1079. hMenuFindErr                    EQU        -127                ;could not find HMenu's parent in MenuKey
  1080. userBreak                        EQU        -490                ;user debugger break
  1081. strUserBreak                    EQU        -491                ;user debugger break; display string on stack
  1082. exUserBreak                        EQU        -492                ;user debugger break; execute debugger commands on stack
  1083. ;   Kernel Error Codes  
  1084.  
  1085. kernelIncompleteErr                EQU        -2401
  1086. kernelCanceledErr                EQU        -2402
  1087. kernelOptionsErr                EQU        -2403
  1088. kernelPrivilegeErr                EQU        -2404
  1089. kernelUnsupportedErr            EQU        -2405
  1090. kernelObjectExistsErr            EQU        -2406
  1091. kernelWritePermissionErr        EQU        -2407
  1092. kernelReadPermissionErr            EQU        -2408
  1093. kernelExecutePermissionErr        EQU        -2409
  1094. kernelDeletePermissionErr        EQU        -2410
  1095. kernelExecutionLevelErr            EQU        -2411
  1096. kernelAttributeErr                EQU        -2412
  1097. kernelAsyncSendLimitErr            EQU        -2413
  1098. kernelAsyncReceiveLimitErr        EQU        -2414
  1099. kernelTimeoutErr                EQU        -2415
  1100. kernelInUseErr                    EQU        -2416
  1101. kernelTerminatedErr                EQU        -2417
  1102. kernelExceptionErr                EQU        -2418
  1103. kernelIDErr                        EQU        -2419
  1104. kernelAlreadyFreeErr            EQU        -2421
  1105. kernelReturnValueErr            EQU        -2422
  1106. kernelUnrecoverableErr            EQU        -2499
  1107. ;
  1108. ; The System 8 form of CFM errors.
  1109. ; The preferred spelling for Code Fragment Manager errors:
  1110. ;
  1111.  
  1112. cfragFirstErrCode                EQU        -2800                ; The first value in the range of CFM errors.
  1113. cfragContextIDErr                EQU        -2800                ; The context ID was not valid.
  1114. cfragConnectionIDErr            EQU        -2801                ; The connection ID was not valid.
  1115. cfragNoSymbolErr                EQU        -2802                ; The specified symbol was not found.
  1116. cfragNoSectionErr                EQU        -2803                ; The specified section was not found.
  1117. cfragNoLibraryErr                EQU        -2804                ; The named library was not found.
  1118. cfragDupRegistrationErr            EQU        -2805                ; The registration name was already in use.
  1119. cfragFragmentFormatErr            EQU        -2806                ; A fragment's container format is unknown.
  1120. cfragUnresolvedErr                EQU        -2807                ; A fragment had "hard" unresolved imports.
  1121. cfragNoPositionErr                EQU        -2808                ; The registration insertion point was not found.
  1122. cfragNoPrivateMemErr            EQU        -2809                ; Out of memory for internal bookkeeping.
  1123. cfragNoClientMemErr                EQU        -2810                ; Out of memory for fragment mapping or section instances.
  1124. cfragNoIDsErr                    EQU        -2811                ; No more CFM IDs for contexts, connections, etc.
  1125. cfragInitOrderErr                EQU        -2812                ; 
  1126. cfragImportTooOldErr            EQU        -2813                ; An import library was too old for a client.
  1127. cfragImportTooNewErr            EQU        -2814                ; An import library was too new for a client.
  1128. cfragInitLoopErr                EQU        -2815                ; Circularity in required initialization order.
  1129. cfragInitAtBootErr                EQU        -2816                ; A boot library has an initialization function.  (System 7 only)
  1130. cfragLibConnErr                    EQU        -2817                ; 
  1131. cfragCFMStartupErr                EQU        -2818                ; Internal error during CFM initialization.
  1132. cfragCFMInternalErr                EQU        -2819                ; An internal inconstistancy has been detected.
  1133. cfragFragmentCorruptErr            EQU        -2820                ; A fragment's container was corrupt (known format).
  1134. cfragInitFunctionErr            EQU        -2821                ; A fragment's initialization routine returned an error.
  1135. cfragNoApplicationErr            EQU        -2822                ; No application member found in the cfrg resource.
  1136. cfragArchitectureErr            EQU        -2823                ; A fragment has an unacceptable architecture.
  1137. cfragFragmentUsageErr            EQU        -2824                ; A semantic error in usage of the fragment.
  1138. cfragFileSizeErr                EQU        -2825                ; A file was too large to be mapped.
  1139. cfragNotClosureErr                EQU        -2826                ; The closure ID was actually a connection ID.
  1140. cfragNoRegistrationErr            EQU        -2827                ; The registration name was not found.
  1141. cfragContainerIDErr                EQU        -2828                ; The fragment container ID was not valid.
  1142. cfragClosureIDErr                EQU        -2829                ; The closure ID was not valid.
  1143. cfragAbortClosureErr            EQU        -2830                ; Used by notification handlers to abort a closure.
  1144.  
  1145. cfragLastErrCode                EQU        -2899                ; The last value in the range of CFM errors.
  1146.     IF OLDROUTINENAMES THEN
  1147. ;  The old spelling for Code Fragment Manager errors, kept for compatibility:
  1148.  
  1149. fragContextNotFound                EQU        -2800
  1150. fragConnectionIDNotFound        EQU        -2801
  1151. fragSymbolNotFound                EQU        -2802
  1152. fragSectionNotFound                EQU        -2803
  1153. fragLibNotFound                    EQU        -2804
  1154. fragDupRegLibName                EQU        -2805
  1155. fragFormatUnknown                EQU        -2806
  1156. fragHadUnresolveds                EQU        -2807
  1157. fragNoMem                        EQU        -2809
  1158. fragNoAddrSpace                    EQU        -2810
  1159. fragNoContextIDs                EQU        -2811
  1160. fragObjectInitSeqErr            EQU        -2812
  1161. fragImportTooOld                EQU        -2813
  1162. fragImportTooNew                EQU        -2814
  1163. fragInitLoop                    EQU        -2815
  1164. fragInitRtnUsageErr                EQU        -2816
  1165. fragLibConnErr                    EQU        -2817
  1166. fragMgrInitErr                    EQU        -2818
  1167. fragConstErr                    EQU        -2819
  1168. fragCorruptErr                    EQU        -2820
  1169. fragUserInitProcErr                EQU        -2821
  1170. fragAppNotFound                    EQU        -2822
  1171. fragArchError                    EQU        -2823
  1172. fragInvalidFragmentUsage        EQU        -2824
  1173. fragLastErrCode                    EQU        -2899
  1174.     ENDIF
  1175. ;  System Notification Service error codes 
  1176.  
  1177. snsNoSuchTypeErr                EQU        -9000
  1178. snsNoSuchSubscriptionErr        EQU        -9001
  1179. snsNoSuchKindErr                EQU        -9002
  1180. snsDistributorGoneErr            EQU        -9003
  1181. snsQueueEmptyErr                EQU        -9004
  1182. snsNoRequestsPendingErr            EQU        -9005
  1183. snsDuplicateSubscriptionErr        EQU        -9006
  1184. snsDuplicateDistributorErr        EQU        -9007
  1185. snsNoSuchDistributorErr            EQU        -9008
  1186. snsSubjectToLargeErr            EQU        -9009
  1187. snsBufferTooSmallErr            EQU        -9010
  1188. snsConsumerQueueOverrunErr        EQU        -9011
  1189. snsReliabilityFailureErr        EQU        -9012
  1190. snsAlreadyUnheldErr                EQU        -9013
  1191.  
  1192.                                                             ; Drag Manager error codes 
  1193. badDragRefErr                    EQU        -1850                ; unknown drag reference 
  1194. badDragItemErr                    EQU        -1851                ; unknown drag item reference 
  1195. badDragFlavorErr                EQU        -1852                ; unknown flavor type 
  1196. duplicateFlavorErr                EQU        -1853                ; flavor type already exists 
  1197. cantGetFlavorErr                EQU        -1854                ; error while trying to get flavor data 
  1198. duplicateHandlerErr                EQU        -1855                ; handler already exists 
  1199. handlerNotFoundErr                EQU        -1856                ; handler not found 
  1200. dragNotAcceptedErr                EQU        -1857                ; drag was not accepted by receiver 
  1201.  
  1202.                                                             ; Mixed Mode error codes 
  1203. mmInternalError                    EQU        -2526
  1204.  
  1205.                                                             ; error codes 
  1206. tsmComponentNoErr                EQU        0                    ; component result = no error 
  1207. tsmUnsupScriptLanguageErr        EQU        -2500
  1208. tsmInputMethodNotFoundErr        EQU        -2501
  1209. tsmNotAnAppErr                    EQU        -2502                ; not an application error 
  1210. tsmAlreadyRegisteredErr            EQU        -2503                ; want to register again error 
  1211. tsmNeverRegisteredErr            EQU        -2504                ; app never registered error (not TSM aware) 
  1212. tsmInvalidDocIDErr                EQU        -2505                ; invalid TSM documentation id 
  1213. tsmTSMDocBusyErr                EQU        -2506                ; document is still active 
  1214. tsmDocNotActiveErr                EQU        -2507                ; document is NOT active 
  1215. tsmNoOpenTSErr                    EQU        -2508                ; no open text service 
  1216. tsmCantOpenComponentErr            EQU        -2509                ; can’t open the component 
  1217. tsmTextServiceNotFoundErr        EQU        -2510                ; no text service found 
  1218. tsmDocumentOpenErr                EQU        -2511                ; there are open documents 
  1219. tsmUseInputWindowErr            EQU        -2512                ; not TSM aware because we are using input window 
  1220. tsmTSHasNoMenuErr                EQU        -2513                ; the text service has no menu 
  1221. tsmTSNotOpenErr                    EQU        -2514                ; text service is not open 
  1222. tsmComponentAlreadyOpenErr        EQU        -2515                ; text service already opened for the document 
  1223. tsmInputMethodIsOldErr            EQU        -2516                ; returned by GetDefaultInputMethod 
  1224. tsmScriptHasNoIMErr                EQU        -2517                ; script has no imput method or is using old IM 
  1225. tsmUnsupportedTypeErr            EQU        -2518                ; unSupported interface type error 
  1226. tsmUnknownErr                    EQU        -2519                ; any other errors 
  1227. tsmInvalidContext                EQU        -2520                ; Invalid TSMContext specified in call 
  1228. tsmNoHandler                    EQU        -2521                ; No Callback Handler exists for callback 
  1229. tsmNoMoreTokens                    EQU        -2522                ; No more tokens are available for the source text 
  1230. tsmNoStem                        EQU        -2523                ; No stem exists for the token 
  1231. ;  AppleEvent error definitions 
  1232.  
  1233. errOffsetInvalid                EQU        -1800
  1234. errOffsetIsOutsideOfView        EQU        -1801
  1235. errTopOfDocument                EQU        -1810
  1236. errTopOfBody                    EQU        -1811
  1237. errEndOfDocument                EQU        -1812
  1238. errEndOfBody                    EQU        -1813
  1239.  
  1240.                                                             ; Database access error codes 
  1241. rcDBNull                        EQU        -800
  1242. rcDBValue                        EQU        -801
  1243. rcDBError                        EQU        -802
  1244. rcDBBadType                        EQU        -803
  1245. rcDBBreak                        EQU        -804
  1246. rcDBExec                        EQU        -805
  1247. rcDBBadSessID                    EQU        -806
  1248. rcDBBadSessNum                    EQU        -807                ; bad session number for DBGetConnInfo 
  1249. rcDBBadDDEV                        EQU        -808                ; bad ddev specified on DBInit 
  1250. rcDBAsyncNotSupp                EQU        -809                ; ddev does not support async calls 
  1251. rcDBBadAsyncPB                    EQU        -810                ; tried to kill a bad pb 
  1252. rcDBNoHandler                    EQU        -811                ; no app handler for specified data type 
  1253. rcDBWrongVersion                EQU        -812                ; incompatible versions 
  1254. rcDBPackNotInited                EQU        -813                ; attempt to call other routine before InitDBPack 
  1255.  
  1256.                                                             ; ENET error codes 
  1257. eLenErr                            EQU        -92                    ;Length error ddpLenErr
  1258. eMultiErr                        EQU        -91                    ;Multicast address error ddpSktErr
  1259.  
  1260.                                                             ; DS Errors which are specific to the new runtime model introduced with PowerPC 
  1261. dsBadLibrary                    EQU        1010                ; Bad shared library 
  1262. dsMixedModeFailure                EQU        1011                ; Internal Mixed Mode Failure 
  1263. ;  System Logging Service 
  1264.  
  1265. logNoConnectionErr                EQU        -29880
  1266. logDataTooLargeErr                EQU        -29881
  1267. logInvalidVersionErr            EQU        -29882
  1268. logNoSuchActionErr                EQU        -29883
  1269. logServiceInUseErr                EQU        -29884
  1270. logNoMoreEntriesErr                EQU        -29885
  1271. logQueueFullErr                    EQU        -29886
  1272. logServiceNotInUseErr            EQU        -29887
  1273. logIteratorInUseErr                EQU        -29888
  1274. logNotATextEntryErr                EQU        -29889
  1275. logNoDataAvailableErr            EQU        -29890
  1276. logInvalidSizeErr                EQU        -29891
  1277. logPluginNotPresentErr            EQU        -29892
  1278. logWrongTypeErr                    EQU        -29893
  1279. logEntryCorruptErr                EQU        -29894
  1280. logCannotCreateActionErr        EQU        -29895
  1281. logIteratorInvalidErr            EQU        -29896
  1282. logInvalidSituationTypeErr        EQU        -29897
  1283. logCorruptStoreErr                EQU        -29898
  1284.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  1285. ;
  1286. ; pascal void SysError(short errorCode)
  1287. ;
  1288.     IF ¬ GENERATINGCFM THEN
  1289.         ; parameters:
  1290.         ;    errorCode       => D0
  1291.         _SysError:    OPWORD    $A9C9
  1292.     ELSE
  1293.         IMPORT_CFM_FUNCTION SysError
  1294.     ENDIF
  1295.  
  1296.     ENDIF
  1297.     ENDIF ; __ERRORS__ 
  1298.  
  1299.